package com.map;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/**
 * 
 * @author one
 *
 */
public class map2HashMapCls {
	
	public static void main(String[]args){
		Map  map =new HashMap();
		for(int i =0;i<100;i++){
			map.put(new Integer(i), String.valueOf(i));
		}
		Iterator i=map.keySet().iterator();;
		int m=0;
		while(i.hasNext()){
			print(i.next());
			m++;
			if(m==101)break;
		}
		map.put(null, null);
		print(map.get(null));
	}

	private static void print(Object obj) {
		System.out.println(obj);
		
	}
}
